// @flow
import { bindActionCreators } from 'redux';
import store from './index';
import { actionCreators as authActions } from './modules/auth';
import { actionCreators as thingsActions, type ThingsActionCreators } from './modules/things';
import { actionCreators as baseActions } from './modules/base';
import { actionCreators as commonActions, type CommonActionCreators } from './modules/common';
// import { actionCreators as sampleActions, type SampleActionCreators } from './modules/sample';
// import { actionCreators as postsActions, type PostsActionCreators } from './modules/posts';
// import { actionCreators as listingActions, type ListingActionCreators } from './modules/listing';

const { dispatch } = store;

export const AuthActions = bindActionCreators(authActions, dispatch);
export const UserActions: ThingsActionCreators = bindActionCreators(thingsActions, dispatch);
export const BaseActions = bindActionCreators(baseActions, dispatch);
export const CommonActions: CommonActionCreators = bindActionCreators(commonActions, dispatch);
// export const SampleActions: SampleActionCreators = bindActionCreators(sampleActions, dispatch);
// export const PostsActions: PostsActionCreators = bindActionCreators(postsActions, dispatch);
// export const ListingActions: ListingActionCreators = bindActionCreators(listingActions, dispatch);
